package com.mxfcode.back.mapper;

import com.mxfcode.entity.BBSCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author moxiufeng
 * @date 2021/3/7 23:26
 */
@Mapper
public interface CategoryMapper {

    List<BBSCategory> getCategoryList(@Param("userId") String userId);

    int insertCategory(@Param("category") BBSCategory category);

    int updateCategory(@Param("category") BBSCategory category);

    BBSCategory selectByPrimaryKey(@Param("id") Integer id);

    int deleteByPrimaryKey(@Param("id") Integer id);

    List<BBSCategory> getAllCategoryList(String userId);

    List<BBSCategory> getCategoryListByIds(String categoryIds);
}
